/*
 * Powered By xTOOLs
 * Dev by tao.li8@pactera.com
 * Copyright ©2009-2018 pactera.com All rights reserved.
 * Generated at Aug 5, 2020 5:48:14 PM
 */

package com.pactera.jep.service.yapin.coll.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pactera.jep.entity.PO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.persistence.*;
import javax.validation.constraints.Digits;
import java.util.Date;

/**
 * 共有人信息表实体类
 * @Author YourName
 * @Date Aug 5, 2020 5:48:14 PM
 */
@ApiModel(value = "Coowner" , description = "共有人信息表")
@Entity
@Table(name = "bs_col_coownerinfo")
public class Coowner implements PO {

    @ApiModelProperty("编号")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Length(max = 64, message = "编号长度最多64位")
    @Column(name = "COOWNER_ID_")
    private String coownerId;

    @ApiModelProperty("共有人关系")
    @Length(max = 100, message = "共有人关系长度最多100位")
    @Column(name = "COOWNER_TYPE_")
    private String coownerType;

    @ApiModelProperty("共有人姓名")
    @Length(max = 100, message = "共有人姓名长度最多100位")
    @Column(name = "COOWNER_NAME_")
    private String coownerName;

    @ApiModelProperty("记录状态")
    @Length(max = 1, message = "记录状态长度最多1位")
    @Column(name = "COOWNER_STATUS_")
    private String coownerStatus;

    @ApiModelProperty("证件类型")
    @Length(max = 20, message = "证件类型长度最多20位")
    @Column(name = "ID_TYPE_")
    private String idType;

    @ApiModelProperty("证件号码")
    @Length(max = 20, message = "证件号码长度最多20位")
    @Column(name = "ID_NO_")
    private String idNo;

    @ApiModelProperty("联系电话")
    @Length(max = 20, message = "联系电话长度最多1位")
    @Column(name = "PHONE_NO")
    private String phoneNo;

    @ApiModelProperty("押品ID")
    @Length(max = 36, message = "押品ID长度最多36位")
    @Column(name = "CLT_ID_")
    private String cltId;

    @ApiModelProperty("租户ID")
    @Length(max = 64, message = "租户ID长度最多64位")
    @Column(name = "TENANT_ID_")
    private String tenantId;

    @ApiModelProperty("创建ID")
    @Length(max = 64, message = "创建ID长度最多64位")
    @Column(name = "CREATED_BY_ID_")
    private String createdById;

    @ApiModelProperty("创建姓名")
    @Length(max = 256, message = "创建姓名长度最多256位")
    @Column(name = "CREATED_BY_NAME_")
    private String createdByName;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Column(name = "CREATED_TIME_")
    private Date createdTime;

    @ApiModelProperty("删除标志")
    @Length(max = 1, message = "删除标志长度最多1位")
    @Column(name = "DELFLAG_")
    private String delflag;

    @ApiModelProperty("显示顺序")
    @Digits(integer = 10, fraction = 0, message = "显示顺序不能超过10位")
    @Column(name = "DISPLAY_ORDER_")
    private Integer displayOrder;

    @ApiModelProperty("修改ID")
    @Length(max = 64, message = "修改ID长度最多64位")
    @Column(name = "MODIFIED_BY_ID_")
    private String modifiedById;

    @ApiModelProperty("修改姓名")
    @Length(max = 256, message = "修改姓名长度最多256位")
    @Column(name = "MODIFIED_BY_NAME_")
    private String modifiedByName;

    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "MODIFIED_TIME_")
    private Date modifiedTime;

    @ApiModelProperty("版本")
    @Digits(integer = 10, fraction = 0, message = "版本不能超过10位")
    @Column(name = "VERSION_")
    private Integer version;

    public String getCoownerId(){
        return coownerId;
    }

    public void setCoownerId(String id){
        this.coownerId = id;
    }
    public String getCoownerType(){
        return coownerType;
    }

    public void setCoownerType(String coownerType){
        this.coownerType = coownerType;
    }
    public String getCoownerName(){
        return coownerName;
    }

    public void setCoownerName(String coownerName){
        this.coownerName = coownerName;
    }
    public String getCoownerStatus(){
        return coownerStatus;
    }

    public void setCoownerStatus(String coownerStatus){
        this.coownerStatus = coownerStatus;
    }
    public String getIdType() { return idType; }

    public void setIdType(String idType) { this.idType = idType; }
    public String getIdNo() { return idNo; }

    public void setIdNo(String idNo) { this.idNo = idNo; }
    public String getPhoneNo() { return phoneNo; }

    public void setPhoneNo(String phoneNo) { this.phoneNo = phoneNo; }
    public String getCltId(){
        return cltId;
    }

    public void setCltId(String cltId){
        this.cltId = cltId;
    }
    public String getTenantId(){
        return tenantId;
    }

    public void setTenantId(String tenantId){
        this.tenantId = tenantId;
    }
    public String getCreatedById(){
        return createdById;
    }

    public void setCreatedById(String createdById){
        this.createdById = createdById;
    }
    public String getCreatedByName(){
        return createdByName;
    }

    public void setCreatedByName(String createdByName){
        this.createdByName = createdByName;
    }
    public Date getCreatedTime(){
        return createdTime;
    }

    public void setCreatedTime(Date createdTime){
        this.createdTime = createdTime;
    }
    public String getDelflag(){
        return delflag;
    }

    public void setDelflag(String delflag){
        this.delflag = delflag;
    }
    public Integer getDisplayOrder(){
        return displayOrder;
    }

    public void setDisplayOrder(Integer displayOrder){
        this.displayOrder = displayOrder;
    }
    public String getModifiedById(){
        return modifiedById;
    }

    public void setModifiedById(String modifiedById){
        this.modifiedById = modifiedById;
    }
    public String getModifiedByName(){
        return modifiedByName;
    }

    public void setModifiedByName(String modifiedByName){
        this.modifiedByName = modifiedByName;
    }
    public Date getModifiedTime(){
        return modifiedTime;
    }

    public void setModifiedTime(Date modifiedTime){
        this.modifiedTime = modifiedTime;
    }
    public Integer getVersion(){
        return version;
    }

    public void setVersion(Integer version){
        this.version = version;
    }
}

